<?php
//数据库连接


$thishost = 'localhost';
$thistype = 'mysql';
$thisusername = 'root';
$thispassword = 'yuan870415';
$thisdbname = 'weatherdata';
$DatabaseSetting ["host"] = $thishost;
$DatabaseSetting ["type"] = $thistype;
$DatabaseSetting ["username"] = $thisusername;
$DatabaseSetting ["password"] = $thispassword;
$DatabaseSetting ["dbname"] = $thisdbname;

$database_cfg = array ('host' => $thishost, 'username' => $thisusername, 'password' => $thispassword, 'charset' => 'utf-8', 'pconnect' => false, 'dbname' => $thisdbname );

$config ['default'] = array ('benchmark' => TRUE, 'persistent' => FALSE, 'connection' => array ('type' => $thistype, 'user' => $thisusername, 'pass' => $thispassword, 'host' => $thishost, 'port' => '3306', 'socket' => FALSE, 'database' => $thisdbname ), 'character_set' => 'utf8', 'table_prefix' => '', 'object' => FALSE, 'cache' => FALSE, 'escape' => TRUE );
//数据库表前缀
$table_top = "tq_";

?>
